home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / os2 / sysb091a.zip / sysbench / src / pmb_datatype.h < prev    next >
Text File  |  1996-05-27  |  2KB  |  101 lines

  1. #define MAX_FIXED_DISKS 10
  2.  
  3. enum components_enum {
  4.   comp_gfx,
  5.   comp_cpuint,
  6.   comp_cpufloat,
  7.   comp_dive,
  8.   comp_disk,
  9.   comp_mem
  10. };
  11.  
  12. enum gfx_enum {
  13.   gfx_bitblt_SS,
  14.   gfx_bitblt_MS,
  15.   gfx_filled_rect,
  16.   gfx_patt_fill,
  17.   gfx_vlines,
  18.   gfx_hlines,
  19.   gfx_dlines,
  20.   gfx_textrender
  21. };
  22.  
  23. enum cpuint_enum {
  24.   cpuint_dhrystone,
  25.   cpuint_hanoi,
  26.   cpuint_heapsort,
  27.   cpuint_sieve
  28. };
  29.  
  30. enum cpufloat_enum {
  31.   cpufloat_linpack,
  32.   cpufloat_flops,
  33.   cpufloat_fft
  34. };
  35.  
  36. enum mem_enum {
  37.   mem_5,
  38.   mem_10,
  39.   mem_20,
  40.   mem_40,
  41.   mem_80,
  42.   mem_160,
  43.   mem_320,
  44.   mem_640,
  45.   mem_1280,
  46.   memr_5,
  47.   memr_10,
  48.   memr_20,
  49.   memr_40,
  50.   memr_80,
  51.   memr_160,
  52.   memr_320,
  53.   memr_640,
  54.   memr_1280,
  55.   memw_5,
  56.   memw_10,
  57.   memw_20,
  58.   memw_40,
  59.   memw_80,
  60.   memw_160,
  61.   memw_320,
  62.   memw_640,
  63.   memw_1280
  64. };
  65.  
  66. enum dive_enum {
  67.   dive_videobw,
  68.   dive_rotate,
  69.   dive_ms_11,
  70. };
  71.  
  72. enum disk_enum {
  73.   disk_avseek,
  74.   disk_busxfer,
  75.   disk_transf,
  76.   disk_cpupct
  77. };
  78.  
  79. struct component {
  80.   char title[80];
  81.   s32 ndatalines;
  82.   struct {
  83.     char entry[30];       // Entry title, Vertical Lines
  84.     double value;         // -1 == not defined
  85.     double unit_val;      // example: if unit-string is MB/s, then this is 1024*1024
  86.     char unit[20];        // unit-string              exaple: MB/s
  87.   } datalines[30];
  88.   double total;
  89.   char unit_total[20];
  90. };
  91.  
  92. #define NUM_COMPONENTS 6
  93.  
  94. struct glob_data {
  95.   s32 selected_disk;
  96.   s32 nr_fixed_disks;
  97.   s32 fixed_disk_size[MAX_FIXED_DISKS];
  98.   struct component c[NUM_COMPONENTS];
  99. };
  100.  
  101.